package cn.edu.zzuli.config;

import cn.edu.zzuli.pojo.Person;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

@Configuration
@ComponentScan("cn.edu.zzuli.pojo")
@Import(App2Config.class)
public class AppConfig {

    @Bean(name = "person")
    public Person getPerson() {
        return new Person();
    }

}
